﻿using WHC.Security.Common;

using WHC.Security.Entity;
using WHC.Security.IDAL;
using WHC.OrderWater.Commons;

namespace WHC.Security.BLL
{
    public class SystemType : BaseBLL<SystemTypeInfo>
	{
		private ISystemType systemTypeDal;

		public SystemType() :base()
		{
			this.systemTypeDal = (ISystemType) baseDal;
		}

		public SystemTypeInfo FindByOID(string oid)
		{
			return this.systemTypeDal.FindByOID(oid);
		}

		public string GetCPUSerialID()
		{
            return HardwareInfoHelper.GetCPUId();
		}

		public bool VerifySystem(string serialNumber, string typeID, int authorizeAmount)
		{
			return this.systemTypeDal.VerifySystem(serialNumber, typeID, authorizeAmount);
		}
	}
}